<?php
namespace app\behaviors;

use yii\base\Behavior;

class My2Behavior extends Behavior
{
    public  $prop2;
    public  $prop3;

    public function func1()
    {
        //echo __CLASS__;    //只代表当前类;
        echo get_called_class();    //只代表当前类;
    }
}